package com.uum.blog.pojo.form;

import com.baomidou.mybatisplus.annotation.*;
import com.uum.common.core.base.BaseEntity;
import com.uum.common.core.valid.InsertGroup;
import com.uum.common.core.valid.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class BlogForm {

    private Long id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "用戶ID")
    private Long userId;

    @ApiModelProperty(value = "作者名字")
    private String author;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "是否发布 0草稿(下架) 1已发布 ")
    private Integer isRelease;

    @ApiModelProperty(value = "逻辑删除 0未删除 1删除")
    private Integer isDeleted = 0;

    @ApiModelProperty(value = "是否置顶 0 否 1是")
    private Integer isTop;

    @ApiModelProperty(value = "是否开启评论 0否 1是")
    private Integer isComment;

    @ApiModelProperty(value = "文章评论的数量")
    private Integer commentCount;

    @ApiModelProperty(value = " 点击文章的数量")
    private Integer clickNum;

    @ApiModelProperty(value = "分类id")
    private Long categoryId;

    @ApiModelProperty(value = "分类名字")
    private String categoryName;

    @ApiModelProperty(value = "标签ID")
    private List<Long> tagIds;

    @ApiModelProperty(value = "标签名字")
    private List<String> tagsName;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "修改时间")
    private String modifiedTime;
}
